package jicheng;

class Perived extends Base{
    public int c = 3;
    public int a = 4;

//    public Perived(int a, int b) {
//        super(a, b);
//    }

    public void method(){
        //在子类中访问同名成员变量优先访问子类自己的，如果一定要访问父类的要加super
        System.out.println(a); //3
        System.out.println(b);
        System.out.println(c);
        System.out.println(super.a);//1
    }

}
